package xzit.gcxy.xxhzx.zhh.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 
 * @desc 角色表
 *
 * @author zhh
 */
@Entity
@Table(name="z_managed_account")
public class ManagedAccountVO extends BaseVO {
	/**
	 * 用户名
	 */
	@Column(nullable = false, length = 20)
	private String username;

	/**
	 * 加密密码
	 */
	@Column(nullable = false, length = 50)
	private String password;

	/**
	 * 级别
	 */
	@Column(nullable = false, length = 2)
	private int level;

	/**
	 * 学院
	 */
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "instituteid")
	private InstituteVO institute;

	/**
	 * 密码
	 */
	@Column(length = 50)
	private String other;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public InstituteVO getInstitute() {
		return institute;
	}

	public void setInstitute(InstituteVO institute) {
		this.institute = institute;
	}

}
